﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CasignDesignGA.Casing
{
    class CasingProperties
    {
        private static CasingProperties instance;

        private Hashtable propertiesMap;

        public static CasingProperties Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new CasingProperties();
                }
                return instance;
            }
        }

        private CasingProperties()
        {
            this.propertiesMap = new Hashtable();
        }

        public void AddProperty(string key, CasingProperty property){
            this.propertiesMap.Add(key, property);
        }

        public CasingProperty getProperty(string key)
        {
            return (CasingProperty)this.propertiesMap[key];
        }

    }
}
